package mux

import (
	"log"

	http "github.com/valyala/fasthttp"
)

const (
	defaultContentType = "text/plain"
)

var notFoundResponse = []byte(`
_  _ ___  ___ 
| \| |   \| _ \
| .' | |) |  _/
|_|\_|___/|_|  

`)

func DefaultNotFoundHandler(ctx *http.RequestCtx) {
	log.Println("request not found", string(ctx.Path()))
	ctx.SetStatusCode(http.StatusNotFound)
	ctx.SetContentType(defaultContentType)
	ctx.SetBody(notFoundResponse)
}
